var arr =[10,50,51,900,800,654,123];

for (var i=0;i<arr.length-1;i++){
    for (var k=0;k<arr.length - i - 1;k++){
        if (arr[k]<arr[k+1]){
            var temp=arr[k];
            arr[k]=arr[k+1];
            arr[k+1]=temp;
        }
    }
}

console.log("从大到小冒泡依次排序"+arr);
